package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.CallAchievementsLog;
import com.py.credit.entity.CallInterfaceInfo;
import com.py.credit.entity.ReturnResultJson;
import com.py.framework.core.common.Page;

public interface CreditServerDao {
	
	
	Map<String, Object> getModelByOffice(@Param(value="serviceCode")String serviceCode , @Param(value="deptId")Long deptId , @Param(value="ztType")String ztType);
	
	ReturnResultJson getMap(@Param(value="modelId")String modelId ,@Param(value="ztName")String ztName ,@Param(value="ztDm")String ztDm);
	
	ReturnResultJson getMapOth(@Param(value="ztName")String ztName ,@Param(value="ztDm")String ztDm);
	
	void insertCallInfo(@Param(value="callInfo") CallInterfaceInfo callInfo);
	
	void insertCallLog(@Param(value="callLog") CallAchievementsLog callLog);
	
	int insertFeedbackInfo(@Param(value="callbackUsage") String callbackUsage , @Param(value="checkcode") String checkcode);
	
	int insertCallInfos(@Param(value="callInfos")List<CallInterfaceInfo> callInfos);

	List<Map<String, Object>> getAchievementsByConditionForPage(
			@Param(value = "ywId")String ywId,
			@Param(value = "ztType")String ztType,
			@Param(value = "deptId")Long deptId,
			@Param(value = "columns")List<String> columns, 
			@Param(value = "additionalColumns")String[] additionalColumns, 
			@Param(value = "conditions")List<String> conditions, 
			@Param(value = "page")Page page);
}